# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# This ebuild come from http://forums.gentoo.org/viewtopic-t-457728.html - The site http://gentoo.zugaina.org/ only host a copy.

inherit distutils subversion

ESVN_REPO_URI="https://svn.participatoryculture.org/svn/dtv/trunk/tv"
#ESVN_PROJECT="democracy"
#ESVN_CO_DIR="tv"


#MY_P="Democracy-${PV}"
DESCRIPTION="Democracy is a free and open internet TV platform."
HOMEPAGE="http://www.getdemocracy.com"
#SRC_URI="ftp://ftp.osuosl.org/pub/pculture.org/democracy/src/${MY_P}.tar.gz"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
#IUSE="gecko-sdk mozilla"

DEPEND=">=dev-python/pyrex-0.9.3
       >=media-libs/xine-lib-1.1.1
       >=dev-libs/boost-1.33.1
       >=dev-python/pygtk-2.0
	   www-client/mozilla-firefox"
       #net-libs/gecko-sdk"
       #>=x11-libs/gtk+-2.0
       #>=libfame-0.9.0
       #dev-util/pkgconfig
RDEPEND="${DEPEND}
       >=dev-util/intltool-0.29
       dev-python/gnome-python-extras
       >=dev-lang/python-2.4"
      


DOCS="AUTHORS ChangeLog HACKING NEWS README TODO"

S="${WORKDIR}/${PN}"

src_unpack() {
   #unpack ${A}
   subversion_src_unpack
   cd ${S}/platform/gtk-x11
   epatch ${FILESDIR}/firefox-headers.patch
   #epatch ${FILESDIR}/libboost.patch
   
}

src_compile(){
   cd ${S}/platform/gtk-x11
   distutils_src_compile
}

src_install(){
   cd ${S}/platform/gtk-x11
   distutils_src_install
}
